.page-container {
    background-color: #f5f5f5;
    min-height: 100vh;
}

.or-header {
    display: flex;
    /* justify-content: space-around ; */
    align-items: center;
    position: fixed;
    top: 0rpx;
    left: 0rpx;
    background: #fff;
    width: 726rpx;
    height: 150rpx;
    padding-top: 59rpx;
    padding-left: 34rpx;
    z-index: 110;

    text {
        font-family: Source Han Sans CN;
        font-weight: 400;
        font-size: 34rpx;
        color: #0E1C37;
        line-height: 26rpx;
    }
}

.back-btn {
    width: 50px;
    height: 20px;
    margin-right: 183rpx;
}

/* 调整：主分类标签样式 */
.main-tabs {
    display: flex;
    background-color: #ffffff;
    padding: 20rpx 0;
    /* 增加内边距 */
    border-bottom: 2rpx solid #f0f0f0;
    /* 调整边框颜色和粗细 */
    padding-right: 250rpx;
    margin-top: 210rpx;
}

.main-tab-item {
    flex: 1;
    text-align: center;
    padding: 18rpx 0;
    /* 调整内边距 */
    font-family: Source Han Sans CN;
    font-weight: 400;
    font-size: 32rpx;
    color: #888B9A;
    line-height: 26rpx;
}

.main-tab-item.active {

    position: relative;
    font-family: Source Han Sans CN;
    font-weight: 500;
    font-size: 36rpx;
    color: #0E1C37;
    line-height: 26rpx;
}

.main-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70rpx;
    /* 调整下划线宽度 */
    height: 8rpx;
    /* 调整下划线高度 */
    background: #BEFF32;
    /* 调整下划线颜色 */
    border-radius: 4rpx;
    /* 调整圆角 */
}

/* 修复订单状态标签偏左问题 */
.order-tabs {
    display: flex;
    background-color: white;
    padding: 15rpx 0;
    border-bottom: 1rpx solid #eee;
    justify-content: center;
    /* 新增：水平居中 */
}

.tab-item {
    /* 修改：将flex:1改为固定宽度+margin */
    width: 140rpx;
    margin: 0 10rpx;
    text-align: center;
    padding: 10rpx 0;
    font-family: Source Han Sans CN;
    font-weight: 400;
    font-size: 26rpx;
    color: #888B9A;
    line-height: 26rpx;
    position: relative;


}

.tab-item.active {
    font-family: Source Han Sans CN;
    font-weight: 500;
    font-size: 26rpx;
    color: #0E1C37;
    line-height: 26rpx;
}

/* 新增：标签页选中时下划线样式 */
.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70rpx;
    height: 6rpx;
    background: #BEFF32;
    border-radius: 3rpx;
}

/* 修复订单内容偏左 */
.order-list {
    padding: 20rpx;
    max-width: 750rpx;
    /* 新增：限制最大宽度 */
    margin: 0 auto;
    /* 新增：水平居中 */
    background-color: #F2F3F8;
}

.order-item {
    background-color: white;
    border-radius: 26rpx;
    padding: 26rpx;
    margin-bottom: 20rpx;
    position: relative;
}

.order-status {
    position: absolute;
    top: 25rpx;
    left: 20rpx;
    padding-left: 12rpx;
    border-radius: 20rpx;
    font-size: 24rpx;
    color: white;
    width: 84rpx;
    height: 32rpx;
    background: #FFF3EB;
    border-radius: 5rpx;
}

.status_image {
    width: 32rpx;
    height: 32rpx;
    margin-right: 12rpx;
}

.order-status.inProgress {
    color: #38AB00;
    background: #EAFFE0;
}

.order-status.accepted {
    color: #5894F6;
    background: #E9F1FF;
}

.order-status.pending-acceptance {
    background: #FFF3EB;
    color: #F76F17;
}

.order-status.pending {
    background: #FFF3EB;
    color: #F76F17;
}

.order-status.completed {
    background: #EEF2F3;
    color: #888B9A;
}

.order-status.cancelled {
    background: #FFF1F3;
    color: #F71737;
}

.order-content {
    margin-left: 120rpx;
}

.order-header {
    display: flex;

    margin-bottom: 15rpx;
}

.order-title {
    font-size: 32rpx;
    font-weight: bold;
    color: #333;
    position: relative;
    top: -5rpx;
    left: 10rpx;
    line-height: 1.4;
    // max-width: calc(100% - 120rpx);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-salary {
    height: 24rpx;
    font-family: Source Han Sans CN;
    font-weight: 500;
    font-size: 26rpx;
    color: #F71737;

    position: relative;
    top: -4rpx;
    left: -120rpx;
}

.order-info {
    margin-bottom: 20rpx;
    font-size: 24rpx;
    color: #888B9A;
    position: relative;
    top: 0rpx;
    left: -120rpx;
    width: calc(118%); // 限制宽度防止溢出
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10rpx;
    margin-bottom: 15rpx;
    max-width: 100%; // 确保不超出父容器
}

.people-info {
    background: #EEF2F3;
    border-radius: 10rpx;
    padding: 8rpx 12rpx; // 增加内边距，移除固定高度
    font-size: 22rpx;
    line-height: 1.4;
    max-width: 100%; // 限制最大宽度
    word-break: break-word; // 允许长文本换行
    white-space: normal; // 允许换行
    display: inline-block; // 改为内联块级元素
}

.time-range {
    color: #888B9A;
}

.skill-desc {
    color: #888B9A;
    line-height: 1.5;
    padding-top: 5rpx;
    border-top: 1rpx dashed #EEEEEE;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    max-width: 100%;
}

.order-location {
    display: flex;
    align-items: center;
    font-size: 24rpx;
    color: #888B9A;
    margin-bottom: 20rpx;
    position: relative;
    top: 0rpx;
    left: -120rpx;
    width: calc(100% - 120rpx);
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

.line {
    width: 712rpx;
    height: 1rpx;
    background: #EEF2F3;
    margin: 30rpx auto;
    margin-left: calc(50% - 419rpx);
}

.order-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15rpx;
}



.complete-btn {
    background-color: #BEFF32;
    color: #0E1C37;
    border: none;
    border-radius: 12rpx;
    width: 160rpx;
    height: 56rpx;
    font-size: 26rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 56rpx;
    text-align: center;
}

.order-location {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0;
    margin-bottom: 10rpx;
}

.order-location text {
    flex: 1;
    margin-right: 15rpx;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-btn {
    height: 46rpx;
    width: 46rpx;
    position: absolute;
    top: -27rpx;
    left: 604rpx;

    background-repeat: no-repeat;
    /* 防止图片重复 */
    background-position: center;
    /* 居中显示 */
    background-size: cover;
    /* 覆盖容器且保持比例 */
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400rpx;
    padding: 20rpx;
}

.empty-icon {
    width: 120rpx;
    height: 120rpx;
    margin-bottom: 20rpx;
    opacity: 0.5;
}

.empty-text {
    color: #999999;
    font-size: 28rpx;
}

.compensation {
    height: 24rpx;
    font-family: Source Han Sans CN;
    font-weight: 500;
    font-size: 26rpx;
    color: #A3A6B7;
    position: relative;
    top: -15rpx;
    left: 0rpx;
}

// 新增按钮样式
.publish-actions {
    display: flex;
    gap: 15rpx;
    margin-top: -30rpx;
}

.modify-btn {
    flex: 1;
    height: 56rpx;
    background: #E9FEDF;
    border-radius: 12rpx;
    font-family: Source Han Sans CN;
    font-weight: 400;
    font-size: 26rpx;
    color: #0E1C37;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 56rpx;
    text-align: center;
}

.select-btn {
    flex: 1;
    height: 56rpx;
    background: #BEFF32;
    border-radius: 12rpx;
    font-family: Source Han Sans CN;
    font-weight: 400;
    font-size: 26rpx;
    color: #0E1C37;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 56rpx;
    text-align: center;
}

.comment-btn {
    width: 172rpx;
    height: 56rpx;
    background: #BEFF32;
    border-radius: 12rpx;
    font-family: Source Han Sans CN;
    font-weight: 400;
    font-size: 26rpx;
    color: #0E1C37;
    position: relative;
    top: -20rpx;
    left: 170rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 56rpx;
    text-align: center;
}

.slide-complete-container {
    width: 100%;
    height: 80rpx;
    overflow: hidden;
    position: relative;
    border-radius: 12rpx;
    margin-top: 10rpx;
}

.slide-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
}

.slide-content {
    flex: 1;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28rpx;
    color: #888;
}

/* 操作按钮容器 */
.action-buttons {
    width: 100%;
}

/* 顶部按钮行 */
.top-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10rpx;
    width: 70%;
    position: relative;
    top: -20rpx;
    left: 140rpx;
}

/* 取消订单按钮 */


/* 聊详情按钮 */
.chat-btn {
    flex: 1;
    /* 平均分配宽度 */
    line-height: 30px;
    border: none;
    outline: none;
    box-shadow: none;
    width: 42rpx;
    height: 56rpx;
    background: #BEFF32;
    border-radius: 12rpx;
    font-family: Source Han Sans CN;
    font-weight: 400;
    font-size: 26rpx;
    color: #0E1C37;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 56rpx;
    text-align: center;
    cursor: pointer;
    user-select: none;
}


/* 滑动完成订单按钮样式 */
.slide-btn {
    width: 100%;
    /* 按钮整体宽度，可调整 */

    /* 占满整行宽度 */
    position: relative;
    top: 0rpx;
    left: -120rpx;
}

/* 滑动容器：灰色背景 */
.slide-btn__area {
    width: 120%;
    height: 40px;
    background: #EEF2F3;
    border-radius: 33rpx;
    overflow: hidden;

    &.active {
        background: linear-gradient(to right, #c2ff86, #e9fedf);
    }
}


.slide-btn__thumb {
    width: 80px;
    /* 与 data 中 thumbWidth 保持一致 */
    height: 40px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    font-size: 26rpx;
    color: #0E1C37;
    z-index: 99;
    background: #BEFF32;
    border-radius: 33rpx;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    /* 圆角与容器一致 */
}

.cancel-btn {
    width: 172rpx;
    height: 56rpx;
    background: #EEF2F3;
    border-radius: 12rpx;
    font-family: Source Han Sans CN;
    font-weight: 400;
    font-size: 26rpx;
    color: #888B9A;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 56rpx;
    text-align: center;
}

.right-icon {
    width: 12rpx;
    height: 10rpx;
    margin-left: 10rpx;
    background-repeat: no-repeat;
    /* 防止图片重复 */
    background-position: center;
    /* 居中显示 */
    background-size: cover;
    /* 覆盖容器且保持比例 */
}

.right-icon-mo {
    width: 53rpx;
    height: 28rpx;
    position: relative;
    left: 570rpx;
    top: 20rpx;
    background-repeat: no-repeat;
    /* 防止图片重复 */
    background-position: center;
    /* 居中显示 */
    background-size: cover;
    /* 覆盖容器且保持比例 */
}

// 添加匹配提示文字样式
.match-tip {
    width: 402rpx;
    height: 22rpx;
    font-family: Source Han Sans CN;
    font-weight: 400;
    font-size: 22rpx;
    color: #5894F6;
    position: relative;
    top: 0rpx;
    left: 0rpx;
    margin-bottom: 50rpx;
}

// 加载更多样式
.load-more {
    padding: 30rpx 0;
    text-align: center;

    .loading-text,
    .no-more-text {
        font-size: 28rpx;
        color: #999;
        padding: 20rpx 0;
    }

    .loading-text {
        color: #666;

        &::before {
            content: '';
            display: inline-block;
            width: 30rpx;
            height: 30rpx;
            border: 2rpx solid #ddd;
            border-top-color: #BEFF32;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-right: 10rpx;
            vertical-align: middle;
        }
    }

    .no-more-text {
        color: #999;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}